from fastapi import APIRouter,Body
from app.service.LangChianService import chat as chat_service

router =  APIRouter()

#调用ai对话
@router.post("/chat")
def chat(message: str):
    result = chat_service(message)
    return result